home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
comm
/
www
/
HTMLDate.readme
< prev
next >
Wrap
Text File
|
1997-09-05
|
3KB
|
75 lines
Short: Update date in HTML with GoldED (V1.5)
Author: roy@ebrown.demon.co.uk (Roy E Brown)
Uploader: Author
Version: V1.5
Type: comm/www
Requires: GoldED V4+
I was always forgetting to change the 'Last revised' date each time I updated my
WWW pages. So I wrote this script.
HTMLDate.ged looks for a user-defined string (default 'Last revised' - can be
changed), followed by a 3 or 4 word date string ('26th January 1997' or 'Monday,
31 March 1997'). It then deletes the existing date and inserts the current date.
It can be added as a button on GoldED's WWW toolbar.
History
~~~~~~~
V1.5 Fixed problem of unwanted spaces before new date string - thanks to
Gregor B. Rosenauer (aka Rosso) for this simple fix.
You can now surround the date portion of the string with as many HTML
style tags as you like. Again, thanks to Rosso.
The user defined string ("Last revised:") can now be of any (reasonable)
length, and is case insensitive.
Correct operation of date insertion if 'EXCLUDE CURSOR' is checked on.
(Thanks again to Rosso for the enlightenment on this subject)
Tidied up the code a little.
V1.4 Added checking for a non-existant revision date. If 'Last revision' (or
whatever you have set for the 'Str' variable) is not found, then the user
will be informed via a suitable requester.
V1.3 The script now accepts the date in 2 formats. There are now 2 variables to
be set at the beginning of the script. See the script header for full
details.
V1.2 Revised the method of reading the current date. The script now uses the
GoldED internal DATE variable. The user will need to set the correct
date style within the preferences of GoldED. See script for details.
V1.1 Removed the leading '0' for single digit days.
V1.0 Initial release
See the script header for full details.
Any comments or suggestions via EMail please.
Cheers,
--
*Roy E Brown* | A4000 OS3.1 | 38Mb RAM | MFC III | Thor 2.5 Elysium |
Doncaster | CyberStorm II | 1.28Gb HD | ZIP 100 | Miami 2.1c |
England | 68040/40MHz | 2x CDROM | USR V34+ | Team AMIGA |
UK | Picasso IV | http://www.ebrown.demon.co.uk |
--
Scrute the inscrutable; eff the ineffable.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
4511 1925 57.3% 22-Jul-97 19:43:56 HTMLDate.ged
1938 1003 48.2% 22-Jul-97 19:49:48 HTMLDate.readme
-------- ------- ----- --------- --------
6449 2928 54.5% 09-Aug-97 04:48:24 2 files